//响应数据
export interface ResponseData {
  code: number
  message: string
  ok?: boolean
}

export interface Attr {
  id?: number | string
  arrtId: number | string
  valueId: number | string
  valueName?: string

}
export interface saleAttr {
  id?: number | string
  saleAttrId: number | string
  saleAttrValueId: number | string
  saleAttrValueName?: string
}

export  interface skuImage {
  id?: number | string
  imgUrl?: string
}

export interface SkuData {
  category3Id?: number | string
  spuId?: number | string
  tmId?: number | string
  skuName?: string
  price?: number | string
  weight?: number | string
  skuDesc?: string
  skuDefaultImg?: string
  skuAttrValueList?: Attr[]
  skuSaleAttrValueList?: saleAttr[]
  skuImageList?: skuImage[]
  isSale?: number
  id?: number
}

export interface SkuResponseData extends ResponseData {
  data: {
    records: SkuData[]
    total: number
    size: number
    current: number
    orders: []
    optimizeCountSql: boolean
    hitCount: boolean
    countId: null
    maxLimit: null
    searchCount: boolean
    pages: number
  }
}

export interface SkuInfoData extends ResponseData {
  data: SkuData
}

